#include <stdio.h>

int stringLength(const char *str)
{
  if (*str == '\0')
    return 0;
  else
    return 1 + stringLength(str + 1);
}

int main()
{
  const char *str = "Hello, World!";
  int length = 0;

  while (str[length] != '\0')
  {
    length++;
  }

  printf("Length of the string is: %d\n", length);
  printf("Length of the string is: %d\n", stringLength(str));
  return 0;
}